// components/popup/payment/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    show: {
      type: Boolean,
      value: false
    },
    currentDate:{
      type:String,
      value: '12:00',
    }
  },
  /**
   * 组件的初始数据
   */
  data: {
    currentDate: '12:00',
    minHour: 9,
    maxHour: 23
  },
  /**
   * 组件的方法列表
   */
  methods: {
    // 关闭
    onClose () {
      this.triggerEvent('close')
    },
    confirm(event) {
      this.setData({
        currentDate: event.detail,
        show: false,
      });
      this.triggerEvent('confirm', event.detail)
    },
    cancel(event) {
      this.setData({
        show: false,
      });
    },
  }
});
